<!--
  Generated template for the LoginPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar style="opacity: 0.8" no-border-bottom color="primary" hideBackButton="true">
    <ion-title></ion-title>
    <button ion-button (click)="logOn()">注册</button>
  </ion-navbar>
</ion-header>

<ion-content>
	<ion-item> <ion-label fixed>账号</ion-label>
	<ion-input type="text" placeholder="手机号/域账号对应手机" #user_id></ion-input>
	</ion-item>
	<ion-item> <ion-label fixed>密码</ion-label>
	<ion-input type="password" placeholder="请输入密码" #password></ion-input>
	</ion-item> <ion-item no-lines>
	<label item-right>记住密码</label>
  <ion-toggle checked="{{passwdflg}}" (ionChange)="pushNotificationChange()">
  </ion-toggle>
	</ion-item>
  <p *ngIf="showflg">{{errormsg}}</p>
	<div style="text-align: center; margin-left: 30px; margin-right: 30px;">
		<button ion-button block color="danger" (click)="logIn(user_id, password)"> 登录 </button>
	</div>
</ion-content>
